import {ref} from 'vue'
import {onPageScroll} from "@dcloudio/uni-app";

export const useScrollBack = () => {
    const scrollTop = ref(0)
    onPageScroll((e) => {
        scrollTop.value = e.scrollTop
        console.log(scrollTop.value)
    })
    return {scrollTop}
}
